/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2022-09-12
 * Time:16:11
 */
public class Test {
    static int j=0;
     int n=0;
    public static void fun(int n){
        //static int i=0;
        //static不能修饰成员中的变量
        j++;
        //静态的成员方法不能用this修饰，非静态的成员方法可以用this
        //this.n=n;
    }
    public Test(){
        this.n=n;
    }


    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            fun(i);
        }
        //this.n=n;
        System.out.println(j);
    }
}
